package com.hubei.tools;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: csy
 * Date: 2025/6/25 Time: 15:38
 */
public class DateTool {
    public static String getDateTime(){
        // 创建一个日期格式化对象
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = new Date();
        return format.format(date);
    }
}
